import request from '@/utils/request'

export function getPlatformDocumentation() {
  return request({
    url: '/mall/api/distributor/help-center/platform-document',
    method: 'get'
  })
}

export function getSystemHelpByPage(query) {
  return request({
    url: '/mall/api/distributor/help-center/system-help',
    method: 'get',
    params: query
  })
}

export function getSystemHelpById(id) {
  return request({
    url: '/mall/api/distributor/help-center/system-help/' + id,
    method: 'get'
  })
}

export function getSalesHelpByPage(query) {
  return request({
    url: '/mall/api/distributor/help-center/sales-help',
    method: 'get',
    params: query
  })
}

export function getSalesHelpById(id) {
  return request({
    url: '/mall/api/distributor/help-center/sales-help/' + id,
    method: 'get'
  })
}

export function getOthersHelpByPage(query) {
  return request({
    url: '/mall/api/distributor/help-center/others-help',
    method: 'get',
    params: query
  })
}

export function getOthersHelpById(id) {
  return request({
    url: '/mall/api/distributor/help-center/others-help/' + id,
    method: 'get'
  })
}

export function getPlatformStrategyByPage(query) {
  return request({
    url: '/mall/api/distributor/help-center/platform-strategy',
    method: 'get',
    params: query
  })
}

export function getPlatformStrategyById(id) {
  return request({
    url: '/mall/api/distributor/help-center/platform-strategy/' + id,
    method: 'get'
  })
}
